package com.miao.activity.filter;

import com.miao.commonn.utils.R;
import com.miao.commonn.vo.GoodsVo;
import com.miao.commonn.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @author 武者
 * @title: UserFilter
 * @projectName miaosha
 * @description:
 * @date 2022/2/24 14:01
 */
@FeignClient("goods")
public interface UserFilter {



    @RequestMapping("/goods/goods/info2/{goodsId}")
    public GoodsVo info2(@PathVariable("goodsId") Integer goodsId);

    @RequestMapping("/goods/user/findby")
    public UserVo findby(@RequestParam Integer uid);

    @RequestMapping("/goods/goods/update")
    public R update(@RequestBody GoodsVo goods);

    @RequestMapping("/goods/goods/lists")
    public List<GoodsVo> lists();

}
